From: Jasper St. Pierre Date: Sat, 9 Jul 2011 21:07:46 +0000 (-0400) Subject: main: Fix small memory leak in main.c X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8077 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=32df0e80ca5544e40101b5af3a7ca25f29a8e932;p=gnome-shell.git main: Fix small memory leak in main.c ==17386== 1,669 (88 direct, 1,581 indirect) bytes in 1 blocks are definitely lost in loss record 4,090 of 4,151 ==17386== at 0x4C24AF4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==17386== by 0x691B099: g_malloc0 (in /usr/lib/libglib-2.0.so.0.2800.8) ==17386== by 0x692006A: g_option_context_new (in /usr/lib/libglib-2.0.so.0.2800.8) ==17386== by 0x5124C57: meta_get_option_context (in /usr/lib/libmutter.so.0.0.0) ==17386== by 0x401D4F: main (in /usr/bin/gnome-shell) https://bugzilla.gnome.org/show_bug.cgi?id=654269 --- diff --git a/src/main.c b/src/main.c index aafef0684..fe72e24b0 100644 --- a/src/main.c +++ b/src/main.c @@ -491,6 +491,8 @@ main (int argc, char **argv) exit (1); } + g_option_context_free (ctx); + meta_plugin_type_register (gnome_shell_plugin_get_type ()); /* Prevent meta_init() from causing gtk to load gail and at-bridge */